//7.输入10个数，求他们所有数的和
public class Task {
    public static void main(String[] args) {
        Scanner in=new Scanner(System.in);
        int i=1,sum=0;
        while (i<=10) {
            System.out.println("请输入第"+i+"个数");
            int num=in.nextInt();
            i++;
            sum=sum+num;
        }
        System.out.println("十个数的和为："+sum);
    }
}